﻿using System;

namespace Hetymine.Executioner.Commands {
    public enum ExecutionResult {
        None,
        Success,        
        Failure,
        Error
    }

    public static partial class Extensions {
        public static ExecutionResult ToExecutionResult(this bool result) {
            if (result) {
                return ExecutionResult.Success;
            }

            return ExecutionResult.Failure;
        }
    }
}
